package com.ryskoo.basicdata.area.province.service;

import com.ryskoo.basicdata.area.province.domain.ProvincePO;
import com.ryskoo.basicdata.area.province.repository.IProvinceRepository;
import com.ryskoo.framework.core.service.BasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author qyc
 */
@Service
public class ProvinceServiceImpl extends BasicServiceImpl<ProvincePO> implements IProvinceService {
    @Autowired
    private IProvinceRepository provinceRepository;

    @PostConstruct
    public void init() {
        this.setDao(provinceRepository);
    }

	@Override
	public void initArea() {
		provinceRepository.initArea();
	}

    @Override
    public ProvincePO getByEntityNo(String entityNo) {
        return provinceRepository.getByEntityNo(entityNo);
    }
}
